#ifndef __ENEMY_CONTROLLER_H__
#define __ENEMY_CONTROLLER_H__

#include <Ogre.h>
#include <OIS.h>
#include "EnemyModel.h"
#include "Controller.h"
#include "PlayerController.h"
#include "World.h"

using namespace Ogre;

class EnemyController:public AbstractController
{
protected://field
	EnemyModel *m_enemyModel;
	Ogre::SceneManager* mSceneMgr;
public: //attribute
	EnemyModel* getEnemyModel(){return m_enemyModel;}

public: //method
	virtual void AddTime(Real deltatime);

public: //cons &destroy
	EnemyController(SceneManager *sm);
	virtual ~EnemyController(){if(m_enemyModel!=NULL) delete(m_enemyModel);}

private:
	void Initialization();

	virtual void Send( PapaBallMsg msg );

	PlayerController* pPlayerController;

};
#endif
